package javaguide;

public class Test1 {

    public static void main(String[] args) {
        String a = new String("ab");
        String b = new String("ab");
        String aa = "ab";
        String bb = "ab";
        if (aa == bb)
            System.out.println("aa==bb");
        if (a == b)
            System.out.println("a==b");
        if (a.equals(b))
            System.out.println("aEQb");
        if (42 == 42.0) {
            System.out.println("true");
        }
    }
}
